package org.xp.judgeplatform.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "file")
public class FileUploadConfig {

    private Upload upload = new Upload();
    private Access access = new Access();

    @Data
    public static class Upload {
        private String basePath = "./uploads";
        private String avatarPath = "./uploads/avatars";
    }

    @Data
    public static class Access {
        private String baseUrl = "http://localhost:8080";
    }
}
